<template>
	<view>
		<view class="flex-row row-column row-middle row-center" :style="'height:' + windowHeight">
			<view v-show="status == 1">
				<u-icon name="checkmark-circle" size="200" color="#06A972"></u-icon>
			</view>
			<view v-show="status == 1">订单支付成功</view>
			<view v-show="status == 2">
				<u-icon name="close-circle" size="200" color="#dc0404"></u-icon>
			</view>
			<view v-show="status == 2">订单支付失败</view>
			<view>
				<u-button @click="goOrderList" text="查看订单" color="#06A972"></u-button>
			</view>
		</view>
	</view>
</template>


<script>
	let windowHeight = uni.getSystemInfoSync().windowHeight;
	export default {
		data() {
			return {
				status: 0,
				windowHeight: windowHeight + 'px'
			}

		},

		onLoad(option) {
			let that = this;
			that.status = option.status
		},

		onShow() {
		},

		methods: {
			goOrderList() {
				uni.reLaunch({
					url: '/pages/users/order_list/index?type=WAIT_SEND'
				});
			}
		}
	}
</script>

<style>
	page {
		background: #F8F8F8;
	}
</style>
